package com.service;

import com.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService  {

    public User login(String username,String password);
    /*注册*/
    public int register(User user);
    /*查询*/
   public List<User> getList(String name);
    /*通过id 查询用户*/
    public User selectUserById(Integer id);

   public int updateUser(User user);

    public int deleteUserById(Integer id);
}
